using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace DeVierKoeden.Dynamicweb.CreateSite.Rizzo
{
  internal class GroupTreeNode : TreeNode
  {
    /// <summary>
    /// Initializes a new instance of the <see cref="GroupTreeNode"/> class.
    /// </summary>
    public GroupTreeNode()
    {
      ImageIndex = 1;
      SelectedImageIndex = 1;
      SelectedFields = new List<string>();
    }
    internal List<FieldTreeNode> GetFields()
    {
      return Nodes.OfType<FieldTreeNode>().ToList();
    }

    public List<string> SelectedFields { get; set; }
  }
}
